<html>
<head>
<title>A.java</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #bcbec4;}
.s1 { color: #2aacb8;}
.s2 { color: #f75464;}
.s3 { color: #bcbec4;}
.s4 { color: #6aab73;}
</style>
</head>
<body bgcolor="#1e1f22">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#606060" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
A.java</font>
</center></td></tr></table>
<pre>
<span class="s0">mkdir </span><span class="s1">10.22</span><span class="s0">实验四</span>
<span class="s0">cd </span><span class="s1">10.22</span><span class="s0">实验四</span>
<span class="s0">git init</span>

<span class="s2"># </span><span class="s0">将代码文件添加到仓库中</span>
<span class="s0">touch AveragePriceCalculator</span><span class="s3">.</span><span class="s0">java</span>
<span class="s0">git add AveragePriceCalculator</span><span class="s3">.</span><span class="s0">java</span>

<span class="s2"># </span><span class="s0">提交更改到仓库</span>
<span class="s0">git commit </span><span class="s3">-</span><span class="s0">m </span><span class="s4">&quot;Initial commit for experiment 4&quot;</span>

        <span class="s2"># </span><span class="s0">如果需要将仓库推送到远程仓库</span><span class="s2">（</span><span class="s0">如GitHub</span><span class="s2">），</span><span class="s0">你需要执行以下步骤</span>
<span class="s2"># </span><span class="s0">git remote add origin </span><span class="s3">&lt;</span><span class="s0">repository</span><span class="s3">-</span><span class="s0">url</span><span class="s3">&gt;</span>
        <span class="s2"># </span><span class="s0">git branch </span><span class="s3">-</span><span class="s0">M main</span>
<span class="s2"># </span><span class="s0">git push </span><span class="s3">-</span><span class="s0">u origin main</span>
</pre>
</body>
</html>